﻿using Prism.Commands;
using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows;

namespace Rafy.YuWen.ViewModels
{
    public class YuWenDictViewModel : BindableBase
    {
        private string _keyword;
        public string Keyword
        {
            get { return _keyword; }
            set { SetProperty(ref _keyword, value); }
        }

        private DelegateCommand searchCommand { get; set; } 
        public YuWenDictViewModel()
        {
            searchCommand = new DelegateCommand(Search);
        }

        private void Search()
        {
            MessageBox.Show(Keyword);
        }
    }
}
